From 82c0057fa0e50931cd39ee1365e758775f73b010 Mon Sep 17 00:00:00 2001 From: Gerd Moellmann Date: Wed, 10 Jan 2001 14:42:57 +0000 Subject: [PATCH] (display_line): On ttys, produce more than one truncation glyph for multibyte characters that don't fit on the line. --- src/xdisp.c | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/src/xdisp.c b/src/xdisp.c index 367408dbdba..a68bd5d40fb 100644 --- a/src/xdisp.c +++ b/src/xdisp.c @@ -12327,8 +12327,17 @@ display_line (it) /* Maybe add truncation glyphs. */ if (!FRAME_WINDOW_P (it->f)) { - --it->glyph_row->used[TEXT_AREA]; - produce_special_glyphs (it, IT_TRUNCATION); + int i, n; + + for (i = row->used[TEXT_AREA] - 1; i > 0; --i) + if (!CHAR_GLYPH_PADDING_P (row->glyphs[TEXT_AREA][i])) + break; + + for (n = row->used[TEXT_AREA]; i < n; ++i) + { + row->used[TEXT_AREA] = i; + produce_special_glyphs (it, IT_TRUNCATION); + } } row->truncated_on_right_p = 1; -- 2.30.2